package com.jojo.bubble.common.handle;

import org.springframework.core.io.Resource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.io.IOException;
import java.io.InputStream;

/**
 * @Author JoJo
 * @Date 2023/8/12 12:22
 * @Description
 * @Version 1.0
 */
//@Component
public class CertPathExample {
//    private static ResourceLoader resourceLoader;
//
//    public CertPathExample(ResourceLoader resourceLoader) {
//        this.resourceLoader = resourceLoader;
//    }
//
//    @PostConstruct
//    public static InputStream getResourcePath() throws IOException {
//        Resource resource = resourceLoader.getResource("classpath:cert/apiclient_key.pem");
//        String url = resource.getURL().getPath();
//        InputStream inputStream = resource.getInputStream();
//
//        return inputStream;
//    }
}
